package com.jinly.ryder.common.error;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Getter
public class ErrorException extends RuntimeException {

    private String message;
    private ErrorInfo errorInfo;

    public ErrorException(ErrorInfo errorInfo) {
        this.errorInfo = errorInfo;
        this.message = errorInfo.getErrMsg();
    }
}
